package ${content.entityContent.classPackage};

import java.io.Serializable;
import java.util.Date;

import javax.validation.constraints.NotBlank;

import com.baomidou.mybatisplus.annotation.IdType;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonIgnore;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;
/**
 * ${content.entityContent.description}
 * 
 * @author ${author}
 *
 */
@Data
@NoArgsConstructor

<#if (content.entityContent.tableName)??> 
@TableName("${content.entityContent.tableName}")
</#if>

@ApiModel("${content.entityContent.description}")
public class ${content.entityContent.className} implements Serializable{
 	private static final long serialVersionUID = 1L;
	
	
	<#list content.entityContent.fieldAttributes as item> 
	<#if (item.description)??> 
	/**
	 * ${item.description}
	 */
	@ApiModelProperty("${item.description}")
	</#if>
	<#if (item.field) == 'delFlag' >
	@JsonIgnore
	@TableLogic
	</#if>
	<#if (item.field) == 'id' >
	@TableId(type = IdType.UUID)
	</#if>
	private ${item.javaType} ${item.field}; 
	</#list>
	 
}
